import { lazy } from 'react'
import { Rootrouter } from '../utils/type'


const routerConfig: Rootrouter = [
    {
        path: "/",
        redirect: "/home/article/index"
    },
    {
        path: "/home",
        element: lazy(() => import("../views/Home")),
        children: [
            {
                path: "/home/article",
                element: lazy(() => import("../views/home/Article")),
                children: [
                    {
                        path: "/home/article/index",
                        element: lazy(() => import("../views/home/Index/Index")),
                    },
                    {
                        path: "/home/article/back",
                        element: lazy(() => import("../views/home/Index/Back")),
                    },
                    {
                        path: "/home/article/web",
                        element: lazy(() => import("../views/home/Index/Web")),
                    },
                    {
                        path: "/home/article/android",
                        element: lazy(() => import("../views/home/Index/Android")),
                    }
                    ,
                    {
                        path: "/home/article/ios",
                        element: lazy(() => import("../views/home/Index/Ios")),
                    }
                    ,
                    {
                        path: "/home/article/ai",
                        element: lazy(() => import("../views/home/Index/Ai")),
                    }
                    ,
                    {
                        path: "/home/article/kit",
                        element: lazy(() => import("../views/home/Index/Kit")),
                    }
                    ,
                    {
                        path: "/home/article/life",
                        element: lazy(() => import("../views/home/Index/Life")),
                    }
                    ,
                    {
                        path: "/home/article/read",
                        element: lazy(() => import("../views/home/Index/Read")),
                    }
                ]
            },
            {
                path: "/home/booklet",
                element: lazy(() => import("../views/home/Booklet"))
            },
            {
                path: "/home/file",
                element: lazy(() => import("../views/home/File"))
<<<<<<< HEAD
            },
            {
                path: "/home/datils/:id",
                element: lazy(() => import("../views/home/Datils"))
            },
=======
            }
>>>>>>> wanghengda
        ]
    },
    {
        path: "/serch",
        element: lazy(() => import("../views/Serch"))
    }
]

export default routerConfig